//
//  MHSetPriceItemCell.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/4/20.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHSetPriceItemCell.h"
#import "MHSetPriceItemViewModel.h"

@interface MHSetPriceItemCell()
@property (nonatomic, readwrite, strong) MHSetPriceItemViewModel *viewModel;

@end
@implementation MHSetPriceItemCell
@dynamic viewModel;

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"MHSetPriceItemCell";
    MHSetPriceItemCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) cell = [self mh_viewFromXib];
    cell.backgroundColor = [UIColor clearColor];
    return cell;
}




-(void)bindViewModel:(MHSetPriceItemViewModel *)viewModel
{
    [super bindViewModel:viewModel];
    self.viewModel.price = self.priceTextFeild.text;
//    RAC(self.viewModel , price) = [RACSignal merge:@[RACObserve(self.priceTextFeild, text),self.priceTextFeild.rac_textSignal]];
    
}

//+ (instancetype)cellWithTableView:(UITableView *)tableView{
//    
//}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

//-(instancetype)init{
//    return [MHSetPriceItemCell mh_viewFromXib];
//}

@end
